﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Demo
{
    class Book
    {
        private string bookname;
        private string bookwriter;
        private string press;
        private double price;

        public void Bookinformation() 
        {
            Console.WriteLine("该书的名字是{0}，作者是{1}，出版社是{2}，价格是{3}",bookname,bookwriter,press,price);
        }

        public String Bookname
        {
            get { return this.bookname; }
            set { this.bookname = value; }
        }

        public String Bookwriter
        {
            get { return this.bookwriter; }
            set { this.bookwriter = value; }
        }
        public String Press
        {
            get { return this.press; }
            set { this.press = value; }
        }
        public Double Price
        {
            get { return this.price; }
            set { this.price = value; }
        }

   
    }
}
